public class Student {
    String sno;
    String sname;
    int sage;
    String smajor;
    public String getSno() {
        return sno;
    }

    public String getSmajor() {
        return smajor;
    }

    public String getSname() {
        return sname;
    }

    public int getSage() {
        return sage;
    }

    public void setSage(int sage) {
        this.sage = sage;
    }

    public void setSmajor(String smajor) {
        this.smajor = smajor;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }
    void toString1(String s,String b)
    {
        System.out.println("学号:"+s+" 姓名:"+b);
    }
    void toString1(String a,String b,int c,String d)
    {
        System.out.println("学号:"+sno+" 姓名:"+sname+" 年龄:"+sage+" 专业:"+smajor);
    }


}
